package com.example.zkfx.adapter


import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.Child
import com.example.zkfx.R

class TwoAdapter:BaseQuickAdapter<Child,BaseViewHolder>(R.layout.item_two) {
    override fun convert(holder: BaseViewHolder, item: Child) {
        holder.setText(R.id.child_tv,item.name)

        Glide.with(context).load(item.extra).into(holder.getView(R.id.child_iv))

    }
}



